package com.test.bean;

import com.sun.activation.registries.MailcapParseException;
import com.sun.scenario.effect.impl.state.LinearConvolveRenderState;
import org.omg.CosNaming._NamingContextExtStub;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class People {
    Rice rice;
    String name;
    List<Rice> rices;
    List<String> names;
    Set<MeatRice> meatRices;
   Map<String,String> maps;
   String [] arrays;

    public Set<MeatRice> getMeatRices() {
        return meatRices;
    }

    public String[] getArrays() {
        return arrays;
    }

    public void setArrays(String[] arrays) {
        this.arrays = arrays;
    }

    public List<Rice> getRices() {
        return rices;
    }

    public void setRices(List<Rice> rices) {
        this.rices = rices;
    }


    public void setMeatRices(Set<MeatRice> meatRices) {
        this.meatRices = meatRices;
    }


    public List<String> getNames() {
        return names;
    }

    public void setNames(List<String> names) {
        this.names = names;
    }

    public Map<String, String> getMaps() {
        return maps;
    }

    public void setMaps(Map<String, String> maps) {
        this.maps = maps;
    }

    public void eat(){
        System.out.println("---------"+ rices.size());
        for (Rice s:rices) {
            System.out.println("---"+s);
        }
        System.out.println(maps);
        System.out.println("------"+meatRices.size());
        for (MeatRice set:meatRices){
            System.out.println("---------"+set);
        }
        System.out.println("----------"+arrays.length);
        rice.showName();
        System.out.println(name);

    }
    public People(){
        System.out.println("people----------------------");
    }

    public People(Rice rice, String name) {
        this.rice = rice;
        this.name = name;
    }

    public Rice getRice() {
        return rice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("setter name------------------");
        this.name = name;
    }

    public void setRice(Rice rice) {
        System.out.println("setter rice------------------");
        this.rice = rice;
    }
}
